<style>
    body {
    <?php $item = tpl_get("基本设置");?> background: <?php echo $item[0]['color']?> !important;
    }
</style>

<link href="<?php echo SHOP_TEMPLATES_URL;?>/css/home_login.css" rel="stylesheet" type="text/css">
<link href="<?php echo SHOP_TEMPLATES_URL;?>/css/base.css" rel="stylesheet" type="text/css">
<link href="<?php echo SHOP_TEMPLATES_URL;?>/css/home_header.css" rel="stylesheet" type="text/css">
<link href="<?php echo SHOP_TEMPLATES_URL;?>/css/member_login.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="/shop/templates/mln/font/css/font-awesome.css">

<style type="text/css">
    .public-top-layout, .head-app, .head-search-bar, .head-user-menu, .public-nav-layout, .nch-breadcrumb-layout, #faq {
        display: none !important;
    }
    .public-head-layout {
        margin: 10px auto -10px auto;
    }
    .wrapper {
        width: 1000px;
    }
    body #footer {
        border-top: none !important;
        padding-top: 30px;
    }
    .nc-login-title,.nc-login-content{
    	background:#fff !important;
    	border:0;
    }
    .nc-login-bottom{
		background:none;
    }

    #footer{
        position: fixed;
        bottom: 20px;
        left: 0;
        width: 100%;
        text-align: center;
    }
    html{
        height: 100%;
        overflow: hidden;
    }
</style>
<div class="nc-login-layout">
    <?php
    $img = tpl_get("logo");

    ?>
    <a href="<?php echo $img['link'] ?>">
        <img src="<?php echo $img['pic'] ?>" alt="" style="width: 160px;height: 100px;float: left;">
    </a>
    <div style="clear: both;"></div>
<!--    <div class="left-pic"> <img src="--><?php //echo $output['lpic'];?><!--"  border="0"> </div>-->
    <div class="nc-login" style="margin: 0 auto;float: none;margin-top: 30px;">
        <div class="nc-login-title">
            <h3><?php echo $lang['login_index_find_password'];?></h3>
        </div>
        <div class="nc-login-content" id="demo-form-site">
            <form action="index.php?act=login&op=find_password" method="POST" id="find_password_form">
                <?php Security::getToken();?>
                <input type="hidden" name="form_submit" value="ok" />
                <input name="nchash" type="hidden" value="<?php echo getNchash();?>" />
                <dl>
                    <dt><?php echo $lang['login_password_you_account'];?></dt>
                    <dd style="min-height:54px;">
                        <input type="text" class="text" name="username"/>
                        <label></label>
                    </dd>
                </dl>
                <dl>
                    <dt><?php echo $lang['login_password_you_email'];?></dt>
                    <dd style="min-height:54px;">
                        <input type="text" class="text" name="email"/>
                        <label></label>
                    </dd>
                </dl>
                <!-- <dl>
          <dt><?php echo $lang['login_register_code'];?></dt>
          <dd style="min-height:54px;">
            <input type="text" name="captcha" class="text w50 fl" id="captcha" maxlength="4" size="10" />
            <img src="index.php?act=seccode&op=makecode&nchash=<?php echo getNchash();?>" title="<?php echo $lang['login_index_change_checkcode'];?>" name="codeimage" border="0" id="codeimage" class="fl ml5"> <a href="javascript:void(0);" class="ml5" onclick="javascript:document.getElementById('codeimage').src='index.php?act=seccode&op=makecode&nchash=<?php echo getNchash();?>&t=' + Math.random();"><?php echo $lang['login_password_change_code']; ?></a>
            <label></label>
          </dd>
        </dl> -->
                <dl class="mb30" style="">
<!--                    <dt></dt>-->
                    <dd style="float: none;width: 100%;text-align: center;margin-top: 30px;">
                        <input type="button" class="submit" value="重置密码" name="Submit" id="Submit">
                    </dd>
                </dl>
                <input type="hidden" value="<?php echo $output['ref_url']?>" name="ref_url">
            </form>
        </div>
    </div>
</div>
<script type="text/javascript">
    $(function(){
        $('#Submit').click(function(){
            if($("#find_password_form").valid()){
                ajaxpost('find_password_form', '', '', 'onerror');
            } else{
                document.getElementById('codeimage').src='<?php echo SHOP_SITE_URL?>/index.php?act=seccode&op=makecode&nchash=<?php echo getNchash();?>&t=' + Math.random();
            }
        });
        $('#find_password_form').validate({
            errorPlacement: function(error, element){
                var error_td = element.parent('dd');
                error_td.find('label').hide();
                error_td.append(error);
            },
            rules : {
                username : {
                    required : true
                },
                email : {
                    required : true,
                    email : true
                }
                // ,
                // captcha : {
                //     required : true,
                //     minlength: 4,
                //     remote   : {
                //         url : 'index.php?act=seccode&op=check&nchash=<?php echo getNchash();?>',
                //         type: 'get',
                //         data:{
                //             captcha : function(){
                //                 return $('#captcha').val();
                //             }
                //         }
                //     }
                // }
            },
            messages : {
                username : {
                    required : '<?php echo $lang['login_usersave_login_usersave_username_isnull'];?>'
                },
                email  : {
                    required : '<?php echo $lang['login_password_input_email'];?>',
                    email : '<?php echo $lang['login_password_wrong_email'];?>'
                },
                captcha : {
                    required : '<?php echo $lang['login_usersave_code_isnull']	;?>',
                    minlength : '<?php echo $lang['login_usersave_wrong_code'];?>',
                    remote   : '<?php echo $lang['login_usersave_wrong_code'];?>'
                }
            }
        });
    });
</script>